package com.example.spboot.web;

	import org.springframework.stereotype.Controller;
	import org.springframework.web.bind.annotation.RequestMapping;
	import org.springframework.web.bind.annotation.ResponseBody;

	import javax.servlet.http.Cookie;
	import javax.servlet.http.HttpServletResponse;

@Controller
public class CookieTController {
	@RequestMapping("/cookie")
	@ResponseBody
	public String cookie(HttpServletResponse response) {
		// ?? cookie ????????
		response.addCookie(new Cookie("mycookie","ww"));
		return "cookie";
	}

	@RequestMapping("/cookie/get")
	@ResponseBody
	public String cookieGet(HttpServletResponse response) {
		return "cookie";
	}

}
